import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import NotFound from '@/components/Page404'
import TestPage from '@/components/test'
import DoQa from '@/components/doQA'
import ShiQi from '@/components/shiqi'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/test',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/test',
      name:'test page',
      component: TestPage
    },
    {
      path:'/doAnswer',
      name: 'do answer',
      component: DoQa
    },
    {
      path:'/shiqi',
      name: '湿气自测',
      component: ShiQi
    },
    {
      path:'*',
      name:'NotFound',
      component: NotFound
    }
  ]
})
